package com.tianji.learning.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(description = "用户端互动问题信息")
public class QuestionVO {

    @ApiModelProperty(value = "数据id")
    private Long id;

    @ApiModelProperty(value = "问题标题")
    private String title;

    @ApiModelProperty(value = "问题描述")
    private String description;

    @ApiModelProperty(value = "回答数量")
    private Integer answerTimes;

    @ApiModelProperty(value = "问题创建时间", example = "2023-05-01 00:12:28")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "是否匿名提问")
    private Boolean anonymity;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "用户头像")
    private String userIcon;

    @ApiModelProperty(value = "最近回答用户昵称")
    private String latestReplyUser;

    @ApiModelProperty(value = "最近回答内容")
    private String latestReplyContent;

    @ApiModelProperty(value = "所属课程id")
    private Long courseId;

    @ApiModelProperty(value = "所属课程章id")
    private Long chapterId;

    @ApiModelProperty(value = "所属课程节id")
    private Long sectionId;

}
